{% extends "registration/base_site.html" %}

{% block contentname %}User Login{% endblock %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
<div id="form-wrapper">
	<div id="form-header">
		<h1 id="form-title">User Login</h1>
	</div>
	<div class="ColM" id="form-content">
		<div id="content-main">
			<form id="login-form" method="post" action="{% url django.contrib.auth.views.login %}">
				<table>
				<tr>
				    <td>{{ form.username.label_tag }}</td>
				    <td>{{ form.username }}</td>
				</tr>
				<tr>
				    <td>{{ form.password.label_tag }}</td>
				    <td>{{ form.password }}</td>
				</tr>
				</table>
				<input type="submit" value="login" />
				<input type="hidden" name="next" value="{{ next }}" />
			</form>
		</div>
		<div><br class="clear"></br></div>
		<div id="form-footer" />
	</div>
</div>

{% endblock %}